package com.xxx.sealedclass;

/**
 * 密封类：限定继承
 */
public abstract sealed class Animal permits Cat, Dog {
    public abstract void eat();
}
